const state = {
    isShowDialog: 0
}

const actions = {
    IS_SHOW_DIALOG: (context,paylod) => {
        // console.log(context)
        // console.log(paylod)
        context.commit("IS_SHOW_DIALOG",paylod)
    }
}

const mutations = {
    // 这里面进行状态改变
    IS_SHOW_DIALOG: (state, paylod) => {
        state.isShowDialog = paylod.isShowDialog //是否显示电子病历弹窗
        console.log(state.isShowDialog)
    }
}

const getters = {
    isShowDialog: (state, getters) => state.isShowDialog
}

const EMDialogModule = {
    namespaced: true,
    state,
    mutations,
    actions,
    getters
}

export default EMDialogModule